package com.bw.a525zy.New1

import androidx.lifecycle.MutableLiveData
import com.bw.base.entity.NewEntity
import com.bw.base.mvvm.BaseViewModel
import com.bw.base.net.ApiServer
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
@HiltViewModel
class NewViewModel1 @Inject constructor(val apiServer: ApiServer):BaseViewModel() {
    val NewSuccess=MutableLiveData<NewEntity>()
    fun getNew(){
        httpResult({apiServer.getNew()},NewSuccess::postValue)
    }
}